import request from '@/utils/request'

// 查询活动列表
export function activityLists(query) {
  return request({
    url: '/system/activity/list',
    method: 'get',
    params: query
  })
}
//活动列表添加
export function activityListAddApi(data) {
  return request({
    url: '/system/activity',
    method: 'post',
    data:data
  })
}
// 活动列表详情
export function activityDetail(id) {
  return request({
    url: `/system/activity/${id}`,
    method: 'get',
  })
}
// 活动列表详情里面的列表
export function activityDetail2(query) {
  return request({
    url: '/system/participation/list',
    method: 'get',
    params: query
  })
}
// 活动列表详情里面的列表的赋分
export function activityScoring(data) {
  return request({
    url: '/system/records',
    method: 'post',
    data: data
  })
}
// 活动列表详情里面的列表的移除
export function activityDelete(ids) {
  return request({
    url: `/system/participation/${ids}`,
    method: 'delete'
  })
}
// 活动列表详情里面的列表的通过
export function activityPassAll(data) {
  return request({
    url: '/system/participation/audit',
    method: 'post',
    data:data
  })
}
//活动修改
export function activityPutApi(data) {
  return request({
    url: '/system/activity',
    method: 'put',
    data:data
  })
}